package edu.umd.ion.wavemeter.client;

import com.google.gwt.event.dom.client.BlurEvent;
import com.google.gwt.event.dom.client.BlurHandler;
import com.google.gwt.event.dom.client.FocusEvent;
import com.google.gwt.event.dom.client.FocusHandler;

public class HasKeyboardFocus implements FocusHandler, BlurHandler {
	private boolean IsFocused;
		
	public void onFocus(FocusEvent e) {
		IsFocused = true;
	}

	public void onBlur(BlurEvent e) {
		IsFocused = false;
	}
	
	public boolean isFocused() {
		return IsFocused;
	}

}
